﻿import request from '/@/utils/request';
enum Api {
  Addcar_car = '/api/car_car/add',
  Deletecar_car = '/api/car_car/delete',
  Updatecar_car = '/api/car_car/update',
  Pagecar_car = '/api/car_car/page',

  car_carPidDropdown = "/api/car_car/car_carPidDropdown"


}

export const getcar_carPidDropdown = () =>
	request({
		url: Api.car_carPidDropdown,
		method: 'get'
	});



// 增加车型
export const addcar_car = (params?: any) =>
	request({
		url: Api.Addcar_car,
		method: 'post',
		data: params,
	});

// 删除车型
export const deletecar_car = (params?: any) => 
	request({
			url: Api.Deletecar_car,
			method: 'post',
			data: params,
		});

// 编辑车型
export const updatecar_car = (params?: any) => 
	request({
			url: Api.Updatecar_car,
			method: 'post',
			data: params,
		});

// 分页查询车型
export const pagecar_car = (params?: any) => 
	request({
			url: Api.Pagecar_car,
			method: 'post',
			data: params,
		});


